package com.iacrqq.sedaf.stage;

import java.util.List;

public class StageRuntimeStatistics
{

	private long ts;
	private long nops;
	private long fulls;
	private List<Long> handlerConsumeTime;
	private double tps;
	private double nopr;
	private double fr;
	private int currentThreadCount;
	private int idleThreadCount;

	public long getTs()
	{
		return ts;
	}

	public void setTs(long ts)
	{
		this.ts = ts;
	}

	public long getNops()
	{
		return nops;
	}

	public void setNops(long nops)
	{
		this.nops = nops;
	}

	public long getFulls()
	{
		return fulls;
	}

	public void setFulls(long fulls)
	{
		this.fulls = fulls;
	}

	public List<Long> getHandlerConsumeTime()
	{
		return handlerConsumeTime;
	}

	public void setHandlerConsumeTime(List<Long> handlerConsumeTime)
	{
		this.handlerConsumeTime = handlerConsumeTime;
	}

	public double getTps()
	{
		return tps;
	}

	public void setTps(double tps)
	{
		this.tps = tps;
	}

	public double getNopRate()
	{
		return nopr;
	}

	public void setNopr(double nopr)
	{
		this.nopr = nopr;
	}

	public double getFr()
	{
		return fr;
	}

	public void setFr(double fr)
	{
		this.fr = fr;
	}

	public int getCurrentThreadCount()
	{
		return currentThreadCount;
	}

	public int getIdleThreadCount()
	{
		return idleThreadCount;
	}

	public void setCurrentThreadCount(int currentThreadCount)
	{
		this.currentThreadCount = currentThreadCount;
	}

	public void setIdleThreadCount(int idleThreadCount)
	{
		this.idleThreadCount = idleThreadCount;
	}

	@Override
	public String toString()
	{
		StringBuilder sb = new StringBuilder();

		sb.append("StageRuntimeStatistics{");
		sb.append("ts:");
		sb.append(ts);
		sb.append(",nops:");
		sb.append(nops);
		sb.append(",fulls:");
		sb.append(fulls);
		sb.append(",tps:");
		sb.append(tps);
		sb.append(",nopRate:");
		sb.append(nopr);
		sb.append(",fr:");
		sb.append(fr);
		sb.append(",currentThreadCount:");
		sb.append(currentThreadCount);
		sb.append(",idleThreadCount:");
		sb.append(idleThreadCount);
		sb.append("}");
		return sb.toString();
	}
}
